package 经典试题;

class Remove{
	public static void main(String args[]) {
	String str="aabbab3ab3sssfsfs33";
	boolean[] removeChars = new boolean[256];
	removeChars['a'] = true;
	removeChars['b'] = true;
	removeChars['3'] = true;
	StringBuffer sb = new StringBuffer();
	for (char ch: str.toCharArray()) {
		if (!removeChars[ch]) sb.append(ch);
	}
	System.out.println(sb);
	}
	} 